package main.Q1101_1200;

public class Q1111_1120 {
	public static void main(String[] args) {
		System.out.println("Question1111：有效括号的嵌套深度");
		System.out.println("Question1112：");
		System.out.println("Question1113：");
		System.out.println("Question1114：");
		System.out.println("Question1115：");
		System.out.println("Question1116：");
		System.out.println("Question1117：");
		System.out.println("Question1118：");
		System.out.println("Question1119：");
		System.out.println("Question1120：");
	}
}

class Question1111 {
	public int[] maxDepthAfterSplit(String seq) {
		int[] result = new int[seq.length()];
		int index = 0;
		for (char c : seq.toCharArray()) {
			result[index++] = c == '(' ? index & 1 : ((index + 1) & 1);
		}
		return result;
	}
}
